package com.dullong.firedocmanager.lucene4.test;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import com.dullong.firedocmanager.lucene4.LuceneIndexService;
import com.dullong.firedocmanager.lucene4.domain.LDocument;

public class Main2 {
	public static void main(String[] s) {
		LuceneIndexService luceneIndexService = new LuceneIndexService();
		try {
			List<LDocument> list = new ArrayList<LDocument>();
			LDocument document = new LDocument();
			document.setId(6l);
			list.add(document);
			luceneIndexService.delete(list);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println("---------");
	}
}
